import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { resolve } from 'path';
console.log("vite.config.ts")
export default defineConfig({
  root: resolve(__dirname, 'src/renderer'),
  base: './',
  build: {
    outDir: resolve(__dirname, 'dist/renderer'),
    rollupOptions: {
      input: {
        main: resolve(__dirname, 'src/renderer/index.html'),
        child: resolve(__dirname, 'src/renderer/src/mini_program/index.html'),
      }
    }
  },
  resolve: {
    alias: {
      '@renderer': resolve('src/renderer/src'),
    }
  },
  plugins: [vue()]
});

